<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Cache-Control" content="No-Cache">
	<meta http-equiv="Pragma" content="No-Cache">

	<title>문자열테스트</title>
</head>

<body>
<?php
	$today = '20120812';
	$olympicDays = array(
		  '20120730' => '03'
		, '20120731' => '04'
		, '20120801' => '05'
		, '20120802' => '06'
		, '20120803' => '07'
		, '20120804' => '08'
		, '20120805' => '09'
		, '20120806' => '10'
		, '20120807' => '11'
		, '20120808' => '12'
		, '20120809' => '13'
		, '20120810' => '14'
		, '20120811' => '15'
		, '20120812' => '16'
		, '20120813' => 'end'
	);
	$imgNum = $today > '20120813' ? 'end' : $olympicDays[$today];
	echo $today.':'.$imgNum;
?>
</body>
</html>